package com.fsp.service;

import com.fsp.domain.Demo;
import com.fsp.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author fushengping
 * @className DemoService
 * @description
 * @date 2021/7/25 19:38
 */
@Service
public class DemoService {

    @Resource
    //@Autowired(required = false)
    private DemoMapper DemoMapper;

    //查询全部信息
    public List<Demo> list(){
        return DemoMapper.selectByExample(null);
    }
}
